import {LocalStorage} from 'quasar';
import {defaultValue} from 'src/lib/util/team.js'

export default function () {
  let teams = LocalStorage.getItem('team') || [];
  for (let i in teams) {
    teams[i] = {
      ...defaultValue(),
      ...teams[i]
    }
  }
  return {teams};
}
